package com.fang.web;

import com.fang.api.service.facade.HelloService;
import io.jboot.Jboot;
import io.jboot.core.rpc.annotation.JbootrpcService;
import io.jboot.web.controller.JbootController;
import io.jboot.web.controller.annotation.RequestMapping;

@RequestMapping("/")
public class IndexController extends JbootController {

    @JbootrpcService
    HelloService helloService;

    public void index() {
        renderText(helloService.hello("test"));
    }

    public static void main(String[] args) {
        Jboot.run(args);
    }

}
